package com.siyu.decorator;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-06
 * @Version: 1.0
 */
public class Test {


    private static final Logger logger = LoggerFactory.getLogger(Test.class);

    public static void main(String[] args) {

        Pancake pancake;
        pancake = new BasePancake();
        pancake = new EggDecorator(pancake);
        pancake = new SausageDecorator(pancake);
        pancake = new SausageDecorator(pancake);

        System.out.println(pancake.getMsg() + "， 总价" + pancake.getPrice());
        logger.error("错误");
    }
}
